Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: disable admin option when using LDAP auth #2583

Conversation

michael-genson
Copy link
Collaborator

@michael-genson michael-genson commented Sep 27, 2023

What type of PR is this?

(REQUIRED)

  • feature

What this PR does / why we need it:

(REQUIRED)

When editing an LDAP user, it looks like you can edit the user's administrator privileges. This doesn't actually work (since admin permissions are defined by LDAP, not Mealie) so it can cause confusion. This PR conditionally disables that field.

Which issue(s) this PR fixes:

(REQUIRED)

Fixes #2554

Testing

(fill-in or delete this section)

Manually

Release Notes

(REQUIRED)

disable admin permission field when editing a user integrated with LDAP

@hay-kot hay-kot merged commit 1074cad into mealie-recipes:mealie-next Sep 29, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] - Administrator flag for LDAP user can't be saved
2 participants